#include "Vertex3D.h"
#include <algorithm>

using namespace std;

Vertex3D::Vertex3D
(const GLdouble pos[3], const GLdouble color[3])
{
  copy(pos, pos + 3, _pos);
  copy(color, color + 3, _color);
}

Vertex3D::~Vertex3D () {}

void
Vertex3D::handler
(const SDL_Event& ev)
{
  // TODO.
}
 
void
Vertex3D::draw ()
{
  // TODO.
}

const GLdouble* Vertex3D::position() const {return _pos;}
GLdouble Vertex3D::x() const {return _pos[0];}
GLdouble Vertex3D::y() const {return _pos[1];}
GLdouble Vertex3D::z() const {return _pos[2];}

const GLdouble* Vertex3D::color() const {return _color;}
GLdouble Vertex3D::R() const {return _color[0];}
GLdouble Vertex3D::G() const {return _color[1];}
GLdouble Vertex3D::B() const {return _color[2];}
